package tech.wangpai.microservice.product.domain;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.StringJoiner;

public class Product {
    private String pid;
    private String pname;
    private String type;
    private Double price;
    private LocalDateTime createTime;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Product.class.getSimpleName() + "[", "]")
                .add("pid=" + pid)
                .add("pname='" + pname + "'")
                .add("type='" + type + "'")
                .add("price=" + price)
                .add("createTime=" + createTime)
                .toString();
    }
}
